#pragma once
#include "Hazel/Renderer/VertexArray.h"
namespace Hazel
{
	class OpenGLVertexArray : public VertexArray
	{
	public:
		OpenGLVertexArray();
		virtual ~OpenGLVertexArray();
		virtual void Bind() const;
		virtual void Unbind()const ;

		virtual void AddVertexBuffer(const Ref<VertexBuffer>& vertexBuffer);
		virtual void SetIndexBuffer(const Ref<IndexBuffer>& indexBuffer);

		virtual const std::vector<Ref<VertexBuffer>>& GetVertexBuffers() const { return m_VertexBuffer; }
		virtual const Ref<IndexBuffer>& GetIndexBuffers() const { return m_IndexBuffers; }
	private:
		uint32_t m_RendererID;
		std::vector<Ref<VertexBuffer>> m_VertexBuffer;
		Ref<IndexBuffer> m_IndexBuffers;
	};
}


